package com.zzl.cwlyxt.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Adoption)实体类
 *
 * @author makejava
 * @since 2024-03-05 17:17:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Adoption implements Serializable {
    private static final long serialVersionUID = 763568316933811615L;
    /**
     * 领养表id
     */
    @TableId(type = IdType.AUTO)
    private Integer adoptionid;
    /**
     * 领养人id
     */
    private Integer userid;
    /**
     * 宠物id
     */
    private Integer petsid;
    /**
     * 领养时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    /**
     * 申请状态，1待处理、2批准、3拒绝
     */
    private Integer status;
    /**
     * 拒绝原因或者批准原因
     */
    private String message;
    @TableField(exist = false)
    private String petsName;
    @TableField(exist = false)
    private String realname;


}

